package com.practice;

public class demo09 {
    public static void main(String[] args) {
        /*//定义计数器
        int count = 0;
        double paper = 0.1;
        for (; ; ) {
            paper *= 2;
            count++;
            if (paper > 8844430) {
                System.out.println(count);
                break;
            }
        }*/
        int count = 0;
        double paper = 0.1;
        int zf = 8844430;
        while (paper < zf) {
            paper *= 2;
            count++;
        }
        System.out.println(count);
    }
}